<html>
<body>
<p>Reports an if statement that evaluates to <code>Option</code> and suggests replacing it with <code>filter</code>.</p>
<p><b>Example:</b></p>
<pre><code>
  def condition(x: Int): Boolean = ???
  val value = 3
  if (condition(value)) Some(value) else None
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  def condition(x: Int): Boolean = ???
  val value = 3
  Some(value).filter(condition)
</code></pre>
<!-- tooltip end -->
</body>
</html>
